﻿//////////////////////////////////////////////////////////////////////////////////
//
// Project            : SilverlightAsyncSave
// Module             : SilverlightAsyncSave.Web
// Description        : File service contract.
// 
// Repository         : $URL$
// Last changed by    : $LastChangedBy$
// Revision           : $LastChangedRevision$
// Last Changed       : $LastChangedDate$
// Author             : $Author$
//
// Id                 : $Id$
//
// Copyright          : (c) 2010 Torsten Bär
//
// Published under the MIT License. See license.txt or http://www.opensource.org/licenses/mit-license.php.
//
//////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.ServiceModel;

namespace SilverlightAsyncSave.Web
{
   /// <summary>
   /// FileService
   /// </summary>
   [ServiceContract]
   public interface IFileService
   {
      /// <summary>
      /// Gets the files.
      /// </summary>
      /// <returns>The available files.</returns>
      [OperationContract]
      IList<string> GetFiles();

      /// <summary>
      /// Gets the content of the file.
      /// </summary>
      /// <param name="fileName">Name of the file.</param>
      /// <returns>The content.</returns>
      [OperationContract]
      string GetFileContent(string fileName);
   }
}
